projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed5673a
)
remove unnecessary code
author
king6cong
<king6cong@gmail.com>
Thu, 16 Feb 2017 07:11:51 +0000
(15:11 +0800)
committer
king6cong
<king6cong@gmail.com>
Thu, 16 Feb 2017 10:39:27 +0000
(18:39 +0800)
src/cargo/ops/cargo_rustc/fingerprint.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_rustc/fingerprint.rs
b/src/cargo/ops/cargo_rustc/fingerprint.rs
index d892a65172129c9e23ddcb1a952f255208d22cfc..6384204d3d4620323ead0a44d9a1cd9a993db327 100644
(file)
--- a/
src/cargo/ops/cargo_rustc/fingerprint.rs
+++ b/
src/cargo/ops/cargo_rustc/fingerprint.rs
@@
-511,17
+511,14
@@
fn write_fingerprint(loc: &Path, fingerprint: &Fingerprint) -> CargoResult<()> {
Ok(())
}
-/// Prepare
work for
when a package starts to build
+/// Prepare
for work
when a package starts to build
pub fn prepare_init(cx: &mut Context, unit: &Unit) -> CargoResult<()> {
let new1 = cx.fingerprint_dir(unit);
- let new2 = new1.clone();
if fs::metadata(&new1).is_err() {
fs::create_dir(&new1)?;
}
- if fs::metadata(&new2).is_err() {
- fs::create_dir(&new2)?;
- }
+
Ok(())
}